﻿@{
    Layout = null;
}
@using CNKI.TPI.Web.Search.Model;
@using CNKI.TPI.Web.Base
<script>
    function searchsub() {
        var searchname = $("#searchname").val();
        $("#hidename").val(searchname);
        searchSubData()
    }
    $(function () {
        searchsub();
    })
    function searchSubData() {
        $.ajax({
            type: "GET",
            url: timestamp("@Html.Raw(Url.Action("PageConfigSearch", "Admin_Topic"))"),
            data: { "columnname": $('#hidename').val(), "topiccode": $('#TopicCode').val(), "pageIndexNow": $('#pageIndexNow').val() },
            beforeSend: function () { $("#loading").show(); },
            success: function (msg) {
                $("#pageList").html("");
                $("#pageList").html(msg);
                $("#loading").hide();
            },
            error: function (e)
            { $("#loading").hide(); }
        })
    }
    //点击分页
    function searchPageNew(n) {
        $('#pageIndexNow').val(n);
        searchsub();
    }
    $(document).keydown(function (event) {
        if (event.keyCode == 13) {
            searchsub();
        }
    });

</script>
<div class="wrapR-h" style="padding-bottom: 20px">
      <h3 class='box-h'>专题管理--栏目配置 </h3>
    <h3>专题库： @ViewBag.TopicName</h3>
    <br />
    <input type="hidden" id="TopicCode" name="TopicCode" value="@ViewBag.TopicCode" />
    <input type="hidden" id="TopicName" name="TopicName" value="@ViewBag.TopicName" />
    <input type="hidden" id="TopicDB" name="TopicDB" value="@ViewBag.TopicDB" />
    <input type="hidden" id="pageIndexNow" name="pageIndexNow" value="1" />
    <div class="form form-h">
        <div class="f-gp">
            <div class="f-lb">
                <label class="f-label">栏目名称：</label>
            </div>
            <div class="f-ct f-ml">
                <input type="text" class="f-text span4" id="searchname" maxlength="255">
                <input type="hidden" class="f-text span4" id="hidename">
                <a class="btn btn-submit btn-warn-f" onclick="searchsub()">检索</a>
       
            </div>
        </div>

    </div>
</div>
<div class="wrapR-c">
    <div id="pageList">
    </div>
</div>






